home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / RTLWIN16.PAK / STRESS.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  60 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * stress.h -    Stress functions definitions                                  *
  4. *                                                                             *
  5. *******************************************************************************/
  6.  
  7. /* $Copyright: 1987$ */
  8.  
  9. #ifndef __STRESS_H      /* prevent multiple includes */
  10. #define __STRESS_H
  11.  
  12. #ifndef __WINDOWS_H
  13. #include <windows.h>    /* <windows.h> must be included */
  14. #endif  /* __WINDOWS_H */
  15.  
  16. #ifndef RC_INVOKED
  17. #pragma pack(push, 1)   /* Assume byte packing throughout */
  18. #endif  /* RC_INVOKED */
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {            /* Assume C declarations for C++ */
  22. #endif  /* __cplusplus */
  23.  
  24. /****** Simple types & common helper macros *********************************/
  25.  
  26. /* If included with the 3.0 windows.h, define compatible aliases */
  27. #if !defined(WINVER) || (WINVER < 0x030a)
  28. #define UINT        WORD
  29. #define WINAPI      FAR PASCAL
  30. #endif  /* WIN3.0 */
  31.  
  32. /* stuff for AllocDiskSpace() */
  33. #define  EDS_WIN     1
  34. #define  EDS_CUR     2
  35. #define  EDS_TEMP    3
  36.  
  37.  
  38. /* function prototypes */
  39. BOOL    WINAPI AllocMem(DWORD);
  40. void    WINAPI FreeAllMem(void);
  41. int     WINAPI AllocFileHandles(int);
  42. void    WINAPI UnAllocFileHandles(void);
  43. int     WINAPI GetFreeFileHandles(void);
  44. int     WINAPI AllocDiskSpace(long,UINT);
  45. void    WINAPI UnAllocDiskSpace(UINT);
  46. BOOL    WINAPI AllocUserMem(UINT);
  47. void    WINAPI FreeAllUserMem(void);
  48. BOOL    WINAPI AllocGDIMem(UINT);
  49. void    WINAPI FreeAllGDIMem(void);
  50.  
  51. #ifdef __cplusplus
  52. }                       /* End of extern "C" { */
  53. #endif  /* __cplusplus */
  54.  
  55. #ifndef RC_INVOKED
  56. #pragma pack(pop)       /* Revert to default packing */
  57. #endif  /* RC_INVOKED */
  58.  
  59. #endif  /* __STRESS_H */
  60.